package com.zhiche.lisa.bms.constant;


/**
 * The enum D waybill fee enum.
 *
 * @FileName: cn.huiyunche.base.service.enums
 * @Description: Description
 * @author: Aaron
 * @date: 2017 /3/10 下午10:55
 */
public enum DWaybillFeeEnum {

    /**
     * Instantiates a new Total shipping cost.
     */
    TOTAL_SHIPPING_COST(10, "总运费"),

    /**
     * Instantiates a new Labor costs.
     */
    LABOR_COSTS(20, "运费"),

    /**
     * Total oil fee d waybill fee enum.
     */
    TOTAL_OIL_COST(30, "总油费"),

    /**
     * Instantiates a new First bucket oil fee.
     */
    FIRST_BUCKET_OIL_FEE(40, "第一桶油费"),

    /**
     * Instantiates a new Remaining oil fee.
     */
    REMAINING_OIL_FEE(50, "油卡充值金额"),

    /**
     * Market oil price d waybill fee enum.
     */
    MARKET_OIL_PRICE(60, "油价"),

    /**
     * First bucket oil d waybill fee enum.
     */
    FIRST_BUCKET_OIL(70, "第一桶油量"),

    /**
     * Price per km d waybill fee enum.
     */
    PRICE_PER_KM(80, "单公里运价"),

    /**
     * Ship distance d waybill fee enum.
     */
    SHIP_DISTANCE(90, "运输距离"),

    /**
     * Remaining oil d waybill fee enum.
     */
    REMAINING_OIL(100, "油卡充值金额"),


    PRICE_OIL_PER_KM(110, "单公里油价"),

    OIL_CONSUMPTION(120, "车型油耗"),

    REMAIN_OIL(130, "剩余油量"),

    TANKVOLUME(140, "油箱容积"),

    FUEL_TYPE(150, "油品"),

    TOTAL_FUEL_CONSUMPTION(160, "总油量"),

    SUBSIDY(170, "补贴");


    private final int value;

    private final String text;

    /**
     * Instantiates a new Acc bill status enum.
     *
     * @param value the value
     * @param text  the text
     */
    DWaybillFeeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    /**
     * Gets value.
     *
     * @return the value
     */
    public int getValue() {
        return value;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * Get by value acc bill status enum.
     *
     * @param value the value
     * @return the acc bill status enum
     */
    public static DWaybillFeeEnum getByValue(int value) {
        for (DWaybillFeeEnum temp : DWaybillFeeEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
